<template>
  <!-- 统计和清空 -->
  <footer class="footer">
    <!-- 统计 -->
    <span class="todo-count">合 计:<strong> {{ todos.length }} </strong></span>
    <!-- 清空 -->
    <button class="clear-completed" @click="$emit('clear')">
      清空任务
    </button>
  </footer>
</template>

<script>
export default {
  props: {
    todos: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {

    }
  }
}
</script>

<style></style>
